﻿<UserControl x:Class="Rhizome.QuickStart.Elevator.SL.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:ViewModel="clr-namespace:Rhizome.QuickStart.Elevator.ViewModel" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <UserControl.DataContext>
        <ViewModel:ElevatorViewModel />
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Position: " />
                <TextBlock Text="{Binding Position}" />
                <TextBlock Text=", IsOpen: " />
                <TextBlock Text="{Binding IsOpen}" />
            </StackPanel>

            <StackPanel Orientation="Horizontal">

				<CheckBox Content="Up" IsChecked="{Binding UpChecked, Mode=TwoWay}" />
				<CheckBox Content="Down" IsChecked="{Binding DownChecked, Mode=TwoWay}" />
                <Button Content="Stop" Command="{Binding StopCommand, Mode=OneTime}" />

            </StackPanel>

        </StackPanel>
    </Grid>
</UserControl>
